<!--<?php
require_once template('header'); 
require_once template('help_left');
print <<<EOT
<!-- 右边开始 -->
	<div id="right">
		<div id="location"><p><b>$navigation</b></p></div>
		<div class="member_xg">
			<div class="title8"><a href="cart.php?action=buy" style="float:right; padding-right:10px; font-size:12px; font-weight:normal; text-decoration:underline; padding-top:3px; color:#c00;">$lang[return_cart]</a><span>$lang[buyer_add]</span></div>
			<table cellpadding="0" cellspacing="0" class="shzz">
			<tr>
					<td class="td1"></td>
					<td></td>
					<td class="td1"></td>
					<td>$val[tel]</td>
					<td></td>
				</tr>
<!--
EOT;
foreach ($member_address as $val){
print <<<EOT
-->
				<tr><th colspan="5">$val[add_name]&nbsp;</th></tr>
				<tr>
					<td rowspan="3" valign="top" class="td2" width="66" align="center">
					<input  onclick="location.href='member.php?action=address&act=edit&add_id=$val[id]#address'"  type="button" value="$lang[edit_announce]" class="btn2" />
					<br /><input onclick="location.href='member.php?action=deladdress&add_id=$val[id]'" type="button" value="$lang[uesr_del]" class="btn2" /></td>
					<td class="td1">$lang[buyer_name]：</td>
					<td>$val[consignee]</td>
					<td class="td1">$lang[email]：</td>
					<td>$val[email]</td>
				</tr>
				<tr>
					<td class="td1">$lang[telb]：</td>
					<td>$val[mobile]</td>
					<td class="td1">$lang[tel]：</td>
					<td>$val[tel]</td>
				</tr>
				<tr>
					<td class="td1">$lang[address]：</td>
					<td>$val[province]$val[city]$val[address]</td>
					<td class="td1">$lang[user_zip]：</td>
					<td>$val[zipcode]</td>
				</tr>
<!--
EOT;
} print <<<EOT
-->			
			</table>
			<form  method="post" action="" name="address" onsubmit="javascript:return check_address()">
			<input type="hidden" name="setp" value="1">
			<input type="hidden" name="act" value="$act">
			<input type="hidden" name="add_id" value="$add_id">	
						
			<table cellpadding="0" cellspacing="0" class="shzz2">
				<tr><td class="td2" colspan="2"><strong>$lang[buyer_add]</strong> （$lang[nums_address]）<a name="address"></a></td></tr>
				<tr>
					<th>$lang[address_name]：</th>
					<td><input name="add_name" class="inp" type="text" value="$add_info[add_name]" /></td>
				</tr>
				<tr>
					<th></th>
					<td><input name="is_buy" type="checkbox" value="1" $add_info[is_buy] /> $lang[is_address]</td>
				</tr>
				<tr>
					<th>$lang[buyer_name]：</th>
					<td><input name="consignee" value="$add_info[consignee]" class="inp" type="text" /><span>*</span></td>
				</tr>
				<tr>
					<th>$lang[tel]：</th>
					<td><input name="tel" value="$add_info[tel]" class="inp" type="text" /> <span>*</span></td>
				</tr>
				<tr>
					<th>$lang[telb]：</th>
					<td><input name="mobile" value="$add_info[mobile]" class="inp" type="text" /></td>
				</tr>
					<tr>
					<th>$lang[email]：</th>
					<td><input name="email" value="$add_info[email]" class="inp" type="text" /><span>*</span></td>
				</tr>
				<tr>
					<th>$lang[address]：</th>
					<td><script src="include/javascript/initcity.js"></script>
					<select onchange="initcity();" id="province" name="province">
                    <script>creatprovince('$add_info[province]');</script>
                    </select>
                    <select id="city" name="city"><script>initcity('$add_info[city]');</script></select><input name="address" value="$add_info[address]" class="inp" type="text" /> <span>*</span>
				</tr>
				<tr>
					<th>$lang[user_zip]：</th>
					<td><input name="zipcode" value="$add_info[zipcode]" class="inp" type="text" /><span>*</span></td>
				</tr>
				<tr>
					<th></th>
					<td><input name="" class="btn2" type="submit" value="$lang[submit]" /> <input name="" type="reset" class="btn2" value="$lang[reset]" /></td>
				</tr>
			</table>
			</form>
		</div>
		<div class="title_b"><p></p></div>
	</div>
	<!-- 右边结束 -->
<!--
EOT;
?>-->